package com.songlin.houxin.admin.api.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author jinYuLinLang
 * @version 1.0.0
 * @ClassName BasePageDTO.java
 * @Description <p></p>
 * @createTime 2022-03-06 09:39:00
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "分页对象参数", description = "分页信息")
public class BasePageDTO implements Serializable {
    @ApiModelProperty(value = "页码索引")
    @NotNull(message = "页码索引不能为空")
    private Long pageIndex;

    @ApiModelProperty(value = "页码容量")
    @NotNull(message = "页码容量不能为空")
    private Long pageSize;
}
